<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>行内元素垂直内外边距问题</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        div {
            background-color: #e365ad;
            /*margin: 20px;*/
            padding: 30px;
            line-height: 100px;
        }
    </style>
</head>
<body>
<div>我是一个span</div>
</body>
</html>